import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { FormsModule,ReactiveFormsModule } from '@angular/forms';

import { MdlModule } from '@angular-mdl/core';

import { authRoutes } from './auth.routes';
import { AuthService } from '../../services/auth.service'

import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component';

@NgModule({
  imports: [
    MdlModule,
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    RouterModule.forChild(authRoutes)
  ],
  providers: [AuthService],
  declarations: [LoginComponent, RegisterComponent]
})
export class AuthModule { }
